file = open("file2.txt", encoding="utf-8")
while True:
    text = file.readline()  # 每行读到的内容已经自带了\n
    if not text:
        break
    print(text, end='')
file.close()
